<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>idialog demo</title>
		<link href="theme/idialog.css" type="text/css" rel="stylesheet"></link>
		<script src='js/jquery.js'></script>
		<script src='js/ui.core.js'></script>
		<script src='js/ui.draggable.js'></script>
		<script src='js/jquery.idialog.js'></script>
    </head>
    
    <body>
    <input type="button" value="Show Modal Dialog" onclick="popUp(true)"/>
    <input type="button" value="Show Dialog" onclick="popUp(false)"/>
	<script>
	var id = null;
	function popUp(modal){
		$.get("dialog_inc.html",function(html){
			id = $.idialogCreate({
				clazz:'i-dialog-box',
				id:'dialog-box',
				title:'Title 1',
				content:html,
				width:300,
				modal:modal,
				draggable:true
			});
		});
	}
	</script>
	</body>

</html>